#ifndef __WIN_STUB_H__
#define __WIN_STUB_H__

#include "./iostub.h"
#include <stdio.h>

namespace MiniUI
{

class WinStub : public BaseIOStub
{
public:
    WinStub(const char* szFileName, uint nflag);
    ~WinStub();

    virtual size_t Read(void* buf, size_t size);
    virtual size_t Write(const void* buf, size_t size);
    virtual uint   Tell();
    virtual int    Seek(int offset, int origin);
private:
    bool OpenFile(const char* szFileName, uint uflag);
private:
    FILE* m_file;
};

}

#endif